<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictDeviceBrandList" checkbox="false" fitColumns="true" title="房间管理" actionUrl="buildingRoomController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="校区"  field="floor.buildingInfo.schoolArea.schoolName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="楼号"  field="floor.buildingInfo.buildingNumber"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="楼层"  field="floor.floorNumber"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="房间号码"  field="roomNumber"   query="true" queryMode="single"  width="120"></t:dgCol>    
     
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
    <t:dgFunOpt  funname="editItemDetail({'编辑'},{'buildingRoomController.do?goUpdate'},id,{'457'},{'180'})" title="编辑"  />
   <t:dgFunOpt  funname="showItemDetail({'查看'},{'buildingRoomController.do?goUpdate'},id,{'457'},{'180'})" title="查看"  />
   <t:dgDelOpt title="删除" url="buildingRoomController.do?doDel&id={id}" />
   <t:dgToolBar title="录入房间" icon="icon-add" url="buildingRoomController.do?goAdd" funname="add" height="180" width="457"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar> 
	<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
	<t:dgToolBar title="导出模板" icon="icon-putout" funname="ExportXlsTemplate"></t:dgToolBar> 
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 		$("#dictDeviceBrandListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
 function ImportXls() {
 	openuploadwin('Excel导入', 'buildingRoomController.do?upload', "dictDeviceBrandList");
 }   
 
//导出
 function ExportXls() {
 	JeecgExcelExport("buildingRoomController.do?exportXls","dictDeviceBrandList");
 }

 //导出模板
 function ExportXlsTemplate() {
 	JeecgExcelExport("buildingRoomController.do?exportXlsTemplate","dictDeviceBrandList");
 }
 
 
 </script>